﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace RN.ERP.Entity
{
    /// <summary>
    /// 管理目录 - 角色
    /// </summary>
    public class MDRole
    {
        /// <summary>
        /// 角色代码
        /// </summary>
        [Key]
        public Guid RoleID { get; set; }
        /// <summary>
        /// 角色名称
        /// </summary>
        public String RoleName { get; set; }
        /// <summary>
        /// 说明
        /// </summary>
        public String Description { get; set; }
        /// <summary>
        /// 所属(上级)角色代码
        /// </summary>
        public Guid ParentID { get; set; }
        /// <summary>
        /// 是否管理员
        /// </summary>
        public Boolean IsAdmin { get; set; }
        /// <summary>
        /// 是否系统定义角色
        /// </summary>
        public Boolean SysRole { get; set; }
        /// <summary>
        /// 级别
        /// </summary>
        public Int16 RoleLevel { get; set; }
        /// <summary>
        /// 用户数量
        /// </summary>
        public Int32 UserCount { get; set; }
        /// <summary>
        /// 排列顺序
        /// </summary>
        public Int32 SeqNo { get; set; }
        /// <summary>
        /// 本级顺序
        /// </summary>
        public Int16 PartChild { get; set; }
        /// <summary>
        /// 直接下级角色数量
        /// </summary>
        public Int16 ChildNumber { get; set; }
    }
}
